package com.ssr.master.modules.dao;

import com.ssr.master.common.persistence.CrudDao;
import com.ssr.master.modules.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ZhangPeng
 * @Describe //todo
 * @date
 * @updateBy
 * @other
 **/
@Mapper
public interface SysRoleDao extends CrudDao<SysRole> {
    /**
     * @param userId
     * @return java.util.List<com.ssr.master.modules.entity.SysRole>
     * @Description //todo 通过用户UserId获取用户所有角色
     * @author ZhangPeng
     * @date 2020/6/20 14:44
     * @other
    **/
    public List<SysRole> getUserRoleList(@Param("userId") String userId);
}
